package com.rerun.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * The type Dictionaries.
 */
@TableName("dictionaries")
public class Dictionaries extends Model<Dictionaries> {

	private static final long serialVersionUID = 4788381180394635884L;
	private long id;
	private long sort;
	private String dvalue;
	private String desc;
	private String categoryId;
	private Long parentId;
	private long deep;

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public long getDeep() {
		return deep;
	}

	public void setDeep(long deep) {
		this.deep = deep;
	}

	/**
	 * Gets id.
	 *
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * Sets id.
	 *
	 * @param id
	 *            the id
	 */
	public void setId(long id) {
		this.id = id;
	}

	public long getSort() {
		return sort;
	}

	public void setSort(long sort) {
		this.sort = sort;
	}

	/**
	 * Gets dvalue.
	 *
	 * @return the dvalue
	 */
	public String getDvalue() {
		return dvalue;
	}

	/**
	 * Sets dvalue.
	 *
	 * @param dvalue
	 *            the dvalue
	 */
	public void setDvalue(String dvalue) {
		this.dvalue = dvalue;
	}

	/**
	 * Gets desc.
	 *
	 * @return the desc
	 */
	public String getDesc() {
		return desc;
	}

	/**
	 * Sets desc.
	 *
	 * @param desc
	 *            the desc
	 */
	public void setDesc(String desc) {
		this.desc = desc;
	}

	/**
	 * Gets category id.
	 *
	 * @return the category id
	 */
	public String getCategoryId() {
		return categoryId;
	}

	/**
	 * Sets category id.
	 *
	 * @param categoryId
	 *            the category id
	 */
	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}

	

	@Override
	public String toString() {
		return "{" + "id:" + id + ", sort:" + sort + ", dvalue:" + dvalue + ", desc:" + desc + ", categoryId:"
				+ categoryId +'}';
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}
